package com.njwb.day09.ens;

public class PersonTest {
    public static void main(String[] args) {
        //外部无法创建对象
//        Person p1 = Person.getInstance();
//        Person p2 = Person.getInstance();
//        Person p3 = Person.getInstance();
//
//
//        System.out.println(p1==p2);
//        System.out.println(p1==p3);
//        System.out.println(p2==p3);
//
//        System.out.println(p1);
//        System.out.println(p2);
//        System.out.println(p3);




    }

}
